package com.sz.biz.logistics.bill.entity;

import com.sz.common.base.dao.ext.IEnum;

/**
 * Function: 账单价格调整类型 <br>
 * Author: jifeixing<br>
 * Date: 2017-05-18 17:03:00
 */
public enum BillingAdjustmentTypeCode implements IEnum {

    UPPER("UPPER", "上调"),
    DOWN("DOWN", "下调");


    private String code;
    private String name;

    BillingAdjustmentTypeCode(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.name;
    }

    public static BillingAdjustmentTypeCode valueOfEnum(String code) {
        BillingAdjustmentTypeCode[] iss = values();
        for (BillingAdjustmentTypeCode cs : iss) {
            if (cs.getCode().equals(code)) {
                return cs;
            }
        }
        return null;
    }


}
